import { EventTarget } from "cc";
import { uiMgr, ref } from "lcc";

@ref('Game')
export class Game extends EventTarget {
    private static _instance:Game = null;
    public static get instance(){
        if(!Game._instance){
            Game._instance = new Game();
        }
        return Game._instance;
    }
    private constructor(){
        super();
    }

    openUI(){
        uiMgr.openUI("game-test");
    }
}

export function TestFunc(){
    console.log(1111);
}

export enum TEST {
    NONE
}

export let Value = 1;

export const VALUE = 0;
